<%@ page language="java" import="java.util.*,com.king.cms.common.PowerParameter" pageEncoding="UTF-8"%>
<%@ include file="/hotel/include/css.jsp"%>
<%-- /*包含css样式表*/ --%>
<%  
	String pageFunc = "终端设置";		//功能描述
%>
<% 
	int pow=(PowerParameter.save | PowerParameter.cls | PowerParameter.list);
	Map m = (Map)request.getAttribute("data");
	if(null == m)
	  m = new HashMap();
	String area = (String)request.getAttribute("area");
%>


<html>
	<head>
		<title><%=pageFunc%>
		</title>
		<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">
		<script language="javascript">
	function doEnable()
	{
		form1.bmMc.disabled=false;
		form1.bmBzrs.disabled=false;
	}
	function ki_save(){
      var flag = true;
	  if(clskg(document.getElementById("groupName").value) == '') {
	 	   alert('终端分组名称不能为空');
	 	   flag = false;
	 	   return;
	  }
	  if(clskg(document.getElementById("isUse").value) == '') {
	 	   alert('终端设备尺寸不能为空');
	 	   flag = false;
	 	   return;
	  }
	  if(clskg(document.getElementById("inputsize").value) == '') {
	 	   alert('终端设备字数限制不能为空');
	 	   flag = false;
	 	   return;
	  }
	   
	 if(flag){
	    form1.action='<%=path%>/client.do?action=savegroup';
	    form1.submit();
	    }
	}
	function ki_cls(){  
	   document.all.value='';
	}
	function ki_list(){
		window.open('<%=basePath%>client.do?action=listgroup','_self');
	}
	////////除去空格/////////
	function clskg(va){
	  var th=/\s/g;
	 va=va.replace(th,'');
	 return va;
	}
</script>
	</head>
	<body background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
		<p><br>  
		<center>
		<form name="form1" method="post"
			action="<%=basePath%>client.do?action=saveclient">
			 
			<table height="48" border="0" cellpadding="2" cellspacing="1"
				class="bg_table" style="width:90%" bordercolor="#111111">
				<tr class="top_td">
					<td colspan="6"  >
						添加终端设备
					</td>
				</tr>
				<tr class="td2">
					<td width="20%">
						终端设备分组名称
					</td>
					<td width="20%" >
					    <input type="hidden" name="groupId" value="<%=m.get("ID") %>" >
						<input type="text" name=groupName size="40" value="<%=m.get("GROUP_NAME")==null?"":m.get("GROUP_NAME")%>" class="area100"  check="c_n_50">
					</td> 
					<td width="20%" >
						终端设备尺寸 
					</td>
					<td width="15%" >
						<select name="isUse" style=width:95%>
						                  <option value='' <%if(m.get("IS_USE_INPUT")==null){out.print("selected");}%>>选择分组尺寸</option>
						                 <option value=0 <%if(m.get("IS_USE_INPUT")==null||(m.get("IS_USE_INPUT")+"").equals("0")){out.print("selected");}%>>46</option>
						                 <option value=1 <%if(m.get("IS_USE_INPUT")!=null&&(m.get("IS_USE_INPUT")+"").equals("1")){out.print("selected");}%>>26</option>
						                 <option value=2 <%if(m.get("IS_USE_INPUT")!=null&&(m.get("IS_USE_INPUT")+"").equals("2")){out.print("selected");}%>>15</option>
						                 </select>
					</td>
					<td width="15%">
						字数限制
					</td>
					<td width="10%" > 
						<input type="text" name=inputsize size="15" value="<%=m.get("INPUT_SIZE")==null?"":m.get("INPUT_SIZE")%>" class="area100"  check="c_n_50">
					</td> 
				</tr> 
				 
				<tr class="top_td">
					<td colspan="6"> 
					</td>
				</tr>
			</table>
</form>
</center>
		</body>
</html>
<%@ include file="/hotel/pow.jsp"%>
